<template>

</template>
<script>
    export default {
        beforeRouteEnter(to, from, next) {
            // 跳到该路由页面后，再替换为from.path来源路径 
            next(vm => {
                vm.$router.replace(from.path);
            })
        },
        render: function (h) {
            return h() // avoid warning message
        }
    }
</script>